package com.bdsy.common.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.bdsy.system.model.User;
import com.bdsy.system.shiro.ShiroUtils;

/**
 * Controller公共组件
 */
public abstract class AbstractController {
	protected Logger logger = LoggerFactory.getLogger(getClass());
	
	protected User getUser() {
		return ShiroUtils.getUser();
	}

	protected String getUserId() {
		return getUser().getUserId();
	}
	
	protected String getLogiName() {
		return getUser().getLoginName();
	}
	
	protected String getLoginPassword() {
		return getUser().getLoginPassword();
	}
}
